<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><!--{$title}--></title>
<style type="text/css">
<!--
html {overflow-x:auto; overflow-y:hidden;}
-->
</style>
<link href="css/default.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
	font-size: 16px;
	font-weight: bold;
	color: #0000CC;
}
.STYLE6 {font-size: 14}
.STYLE7 {
	font-size: 14px;
	font-weight: bold;
}
.STYLE8 {color: #0000CC}
td.bottomline {	border-bottom: 1px solid #e9e9e9;
}
-->
</style>
<script language="JavaScript">
function CheckForm()
{
 if (document.form1.username.value.length == 0)
 {
  alert("管理员用户名不能为空！");
  document.form1.username.focus();
  return false;
 } 
 if (document.form1.userpwd.value.length <4)
 {
  alert("管理员密码不能小于4位！");
  document.form1.userpwd.focus();
  return false;
 } 
 if (document.form1.useremail.value.length == 0)
 {
  alert("管理员email地址不能为空！");
  document.form1.useremail.focus();
  return false;
 } 
  return true;
}
</script>
</head>

<body>
<table width="100%" height="45" border="0" align="center" cellpadding="0" cellspacing="0" background="imgs/top-banner.gif">
  <tr>
	<td width="280" rowspan="2"><img src="imgs/logo.gif" width="212" height="45" border="0" alt="logo"/></td>
	<td width="630" height="23">&nbsp;</td>
	<td width="110" rowspan="2">&nbsp;</td>
  </tr>
  <tr>
	<td width="280">&nbsp;</td>
	<td width="630" height="22"><table width="500" height="22" border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td><div id="history"></div></td>
	  </tr>
	</table></td>
  </tr>
</table>
<br>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="120" align="center" valign="top"><table width="120" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
      <tr>
        <td height="28" bgcolor="#F9F9F9"><span class="STYLE1">&nbsp;安装步骤</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;1、许可协议</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;2、环境检测</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;3、参数配置</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;<span class="STYLE8">4、正在安装</span></span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;5、安装完成</span></td>
      </tr>
    </table></td>
    <td width="860" align="center" valign="top"><table width="850" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<form name="form1" id="form1" method="POST" action="<!--{$smarty.const.MICE_URL}-->install.php/installsql" onsubmit="return CheckForm()">
      <tr>
        <td height="28" bgcolor="#F9F9F9">&nbsp;<span class="STYLE7">写入配置文件:</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><textarea name="textarea" cols="100" rows="16"><!--{$config}--></textarea></td>
      </tr>
    </table>
      <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
        <tr>
          <td></td>
        </tr>
        <tr>
          <td><table width="850" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
            <tr>
              <td height="28" bgcolor="#F9F9F9">&nbsp;<span class="STYLE7">管理员设置</span></td>
            </tr>
            <tr>
              <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="28" class="bottomline" width="300">&nbsp;用户名</td>
                    <td height="28" class="bottomline"><input type="text" size="35" name="username" value="admin"></td>
                  </tr>
                  <tr>
                    <td height="28" class="bottomline" width="300">&nbsp;密码</td>
                    <td height="28" class="bottomline"><input type="text" size="35" name="userpwd" value="admin"></td>
                  </tr>
                  <tr>
                    <td height="28" class="bottomline" width="300">&nbsp;Email</td>
                    <td height="28" class="bottomline"><input type="text" size="35" name="useremail" value="admin@micecms.com"></td>
                  </tr>
              </table></td>
            </tr>
          </table>
            <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
        <tr>
          <td></td>
        </tr>
        <tr>
          <td><table width="850" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
            <tr>
              <td height="28" bgcolor="#F9F9F9">&nbsp;<span class="STYLE7">安装网站示范内容</span></td>
            </tr>
            <tr>
              <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="28" class="bottomline" width="300">&nbsp;安装网站示范内容</td>
                    <td height="28" class="bottomline"><label><input type="checkbox" name="install_example" id="install_example" value="1">
          确认安装<br>强烈建议初次使用者选择安装。选中该选项将会安装miceCMS安装包中的网站示范内容,让您轻松体验miceCMS的全部功能</label></td>
                  </tr>
              </table></td>
            </tr>
          </table>
            <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
            </table></td>
        </tr>
		<tr>
          <td><table width="850" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
            <tr>
              <td height="28" bgcolor="#F9F9F9">&nbsp;<span class="STYLE7">安装提示</span><font color='red'>(为了节省您的时间，请认真查看)</font></td>
            </tr>
            <tr>
              <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="28" class="bottomline" width="300">&nbsp;配置文件</td>
                    <td height="28" class="bottomline"><!--{$fwriteerr}--></td>
                  </tr>
				  <!--{if $dbstr != '1'}-->
				  <tr>
                    <td height="28" class="bottomline" width="300">&nbsp;数据库</td>
                    <td height="28" class="bottomline"><!--{$dbstr}--></td>
                  </tr>
				  <!--{/if}-->
              </table></td>
            </tr>
          </table>
            <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
            </table></td>
        </tr>
      </table>
	<table width="850" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
      <tr >
        <td bgcolor="#F9F9F9" height="30" valign='middle'>&nbsp;&nbsp;<input name="submit" type="submit" accesskey="N" value="下一步[N]"/>
        </td>
      </tr></form>
    </table></td>
  </tr>
</table>
</body>
</html>
